<?php defined('_JEXEC') or die('Restricted access'); ?>
<?php
$recalc_image = JURI::base(true) . "/components/com_articlecashrewards/assets/images/recalculate-48.png";
?>
<div id="submenu-box">
    <div class="t">
        <div class="t">
            <div class="t"></div>
        </div>
    </div>
    <div class="m">
        <ul id="submenu">
            <li>
                <a href="index.php?option=com_articlecashrewards&controller=referrals&task=pending"><?php echo JText::_('LABEL_PENDING');?></a>
            </li>
            <li>
                <a href="index.php?option=com_articlecashrewards&controller=referrals&task=reviewed"><?php echo JText::_('LABEL_REVIEWED');?></a>
            </li>
            <li>
                <a class="active" href="index.php?option=com_articlecashrewards&controller=referrals&task=recalcpage"><?php echo JText::_('LABEL_RUN_REFERRAL');?></a>
            </li>
            <li>
                <a href="index.php?option=com_articlecashrewards&controller=referrals&task=manageRules"><?php echo JText::_('LABEL_REFERRAL_RULES');?></a>
            </li>
        </ul>
        <div class="clr"></div>
    </div>
    <div class="b">
        <div class="b">
            <div class="b"></div>
        </div>
    </div>
</div>
<form action="index.php?option=com_articlecashrewards" method="post" name="adminForm">
<table class="adminlist" width="100%">
    <tr>
        <td>
            <?php echo JText::_('MSG_RECALC_REFERRALS'); ?><br/><br/>
        </td>
    </tr>
    <tr>
        <td align="center" width="100%">
            <div id="cpanel" style="text-align: center;">
                <div class="icon">
                    <a href="index.php?option=com_articlecashrewards&controller=referrals&task=recalculate">
                        <img src="<?php echo $recalc_image; ?>" alt="<?php echo JText::_('LABEL_RUN_REFERRAL'); ?>" align="top" border="0" />
                        <span><?php echo JText::_('LABEL_RUN_REFERRAL') ?></span>
                    </a>
                </div>
            </div>
        </td>
    </tr>
</table>
<input type="hidden" name="option" value="com_articlecashrewards" />
<input type="hidden" name="controller" value="referrals" />
<input type="hidden" name="task" value="recalculate" />
<input type="hidden" name="boxchecked" value="0" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
